export default [
  { name: '登录', path: '/system/login', component: './system/Login', layout: false },
  { path: '/home', name: '首页', icon: 'HomeOutlined', component: './home' },
  {
    path: '/system',
    access: '/system',
    name: '系统管理',
    icon: 'SettingOutlined',
    routes: [
      { path: '/system', redirect: '/system/changePassword' },
      {
        path: '/system/changePassword',
        access: '/system/changePassword',
        name: '修改密码',
        component: './system/changePassword',
      },
      {
        path: '/system/user',
        access: '/system/user',
        name: '用户管理',
        component: './system/user',
      },
      {
        path: '/system/role',
        access: '/system/role',
        name: '角色管理',
        component: './system/role',
      },
      {
        path: '/system/menu',
        access: '/system/menu',
        name: '菜单管理',
        component: './system/menu',
      },
    ],
  },
  { path: '/', redirect: '/home' },
  { path: '*', layout: false, component: './404' },
];
